package com.huixh.train.batch.client.fallback;

import com.huixh.train.batch.client.BusinessClient;
import com.huixh.train.common.resp.Result;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * @author huixh
 */
@Component
public class BusinessClientFallBack implements BusinessClient {
    /**
     * 生成每日车次
     *
     * @param date 日期
     * @return result
     */
    @Override
    public Result<String> genDaily(Date date) {
        return Result.fail("调用失败");
    }

    /**
     * @return
     */
    @Override
    public Result<String> sendHello() {
        return Result.fail("调用失败");
    }
}
